import { makeAutoObservable, toJS } from "mobx";
import { OrderData } from "types/type";

class MyOrderDetailStore {
    constructor() {
        makeAutoObservable(this, {}, { deep: false });
    }

    orderDetail?: OrderData;
    setOrderDetail(orderDetail: OrderData) {
        this.orderDetail = toJS(orderDetail);
    }

}

const myOrderDetailStore = new MyOrderDetailStore();

export default myOrderDetailStore;
